<?php
error_reporting(0);
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es" dir="ltr">
  <head>
<title>PowerLaptops</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="default.css" />
<link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-base.css" />
<link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-topbar.css" />
<link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-sidebar.css" />
<script type="text/javascript" src="ddlevelsfiles/ddlevelsmenu.js">

/***********************************************
* All Levels Navigational Menu- (c) Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>


  </head>
  <body>
    <noscript><p>Tu navegador no tiene activado javascript.</p></noscript>
    <div id="wrapper">
      <div id="header">
		    <div id = "publicidadLado">
          <img  src="images/static/contactenos_def.jpg" align="left"></img>
        </div> 
          <img  src="images/static/envios_nacionales2.png" align="right"></img>
          <img src="images/static/pagos_seguros.png" align="right"></img>
          <div class="login">
	        <br>
	        <br>
          <?php
          	if($_SESSION["autenticado"]!=1){
          ?>
        	<form name="iniciar" action="getUser.php" method="POST" enctype="multipart/form-data">
      	    login:
      	    <input type="text" name="login" value="" size="10"/>
      	    Password:
      	    <input type="password" name="pass" value="" size="10"/>
            <input type="button" value="acceder" name="registro" onClick="javascript:comprueba2();">
	        </form>
          <script language="JavaScript" type="text/javascript">
          function comprueba2(){
                      document.iniciar.submit();
                  }
          </script>
          <a href="registroUsuario.php">
            <h5> ¡Registrate!</h5>
          </a>
          <?php 	 } else{
                echo "<h5>".$_SESSION["nombreusr"]." <a href=\"logout.php\">salir</a></h5>";
              }
          ?>
	      </div>
      </div>
      <div id="menu">
      	<div id = "logo">
          <img src="images/logo2.jpg" align="left" width = 225 height = 50></img>
        </div>
        <div id = "barra">
      	  <br>
          <br>
          <table>
            <td>
              <a href="index.php" >Inicio</a>
            </td>
            <td>
              <a href="catalogo.php">Cat&aacute;logo</a>
            </td>
            <?php if($_SESSION["tipo"]==1){?>
            <td> <a href="editarSimple.php">Edici&oacute;n de Productos </a></td>
            <td><a href="admin.php">Administraci&oacute;n</a></td>
            <? }?>
          </table>
<!--	  <img src="images/barra.jpg" align="left" width = 645 width = 15> -->
        </div>
      </div>
